/**
 * @fileoverview 多语言校验
 * @author Xkk
 */
"use strict";

//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------

var requireIndex = require("requireindex");

//------------------------------------------------------------------------------
// Plugin Definition
//------------------------------------------------------------------------------
// 
var requireIndex = require('requireindex');
const output = {
  rules: requireIndex(__dirname + '/rules'), // 导出所有规则
  configs: {
    // 导出自定义规则 在项目中直接引用
    jsxNoLiterRule: {
      plugins: ['i18n-lint'], // 引入插件
      rules: {
        // 开启规则
        "i18n-lint/jsx-no-literal": "error"
      }
    }
  }
};

// import all rules in lib/rules
// module.exports.rules = requireIndex(__dirname + "/rules");

module.exports = output

